import request from '@/utils/request'
import {projectApiUrl} from '../config'
/**
 * 项目经理积分列表
 * @param parameter
 */
export function getIntegralList(parameter){
  return request({
    url: projectApiUrl+'/project-manager-point/list',
    method: 'post',
    data: parameter
  })
}


/**
 * 项目经理积分统计
 * @param
 */
export function getIntegralTotal(data){
  return request({
    url: projectApiUrl+'/project-manager-point/count/list',
    method: 'post',
    data
  })
}

/**
 * 项目经理积分年份
 * @param
 */
export function getIntegralYearPoint(data){
  return request({
    url: projectApiUrl+'/project-manager-point/year-point',
    method: 'get',
    params:data
  })
}

/**
 * 项目经理积分恢复分数
 * @param
 */
export function getRestoreList(data){
  return request({
    url: projectApiUrl+'/project-manager-point/restore',
    method: 'get',
    params:data
  })
}



/**
 * 项目经理积分详情
 * @param
 */
export function getIntegralDetails(data){
  return request({
    url: projectApiUrl+'/project-manager-point/detail',
    method: 'get',
    params:data
  })
}

/**
 * 项目经理恢复分数详情
 * @param
 */
export function getIntegralRestoreId(data){
  return request({
    url: projectApiUrl+'/project-manager-point/detail-restoreId',
    method: 'get',
    params:data
  })
}


/**
 * 项目经理恢复积分
 * @param data
 */
export function managerIntegralPoint(data){
  return request({
    url: projectApiUrl+'/project-manager-point',
    method: 'post',
    data: data
  })
}

/**
 * 项目经理积分年份
 * @param data
 */
export function managerPoint(data){
  return request({
    url: projectApiUrl+'/project-manager-point/year-condition',
    method: 'get',
    data: data
  })
}






